#ifndef LABELBUTTON_H
#define LABELBUTTON_H

#include <QPushButton>

class QLabel;
class QHBoxLayout;
class LabelButton : public QPushButton
{
    Q_OBJECT
public:
    explicit LabelButton(QWidget *parent = nullptr);
    QLabel * getNameLabelInstance();
    QLabel * getCodeLabelInstance();
    QHBoxLayout * getHLayoutInstance();
    const QString getName();
    const QString getCode();
    void setName(const QString & _name);
    void setCode(const QString & _code);

signals:

public slots:

private:
    void initWidget();

private:
    QLabel * name;
    QLabel * code;
    QHBoxLayout * hLayout;
};

#endif // LABELBUTTON_H
